# 导人Web测试驱动库
from selenium import webdriver
# 导人交互操作ActionChains(鼠标指针悬停、滚动、拖放等操作)
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.firefox.webdriver import WebDriver
from selenium.webdriver.common.by import By
from selenium.common import exceptions as ex
from time import sleep


#选择需要测试的浏览器
driver: WebDriver = webdriver.Firefox(executable_path='geckodriver')
# 等待加载超时时间
driver.implicitly_wait(30)
# 打开博学谷主页
driver.get("https://www.boxuegu.com/")
driver.find_element(By.ID, "search-input").send_keys('软件测试')
driver.find_element(By.CLASS_NAME, "search-button").click()
